package com.jhgsys.internal.sypq.service;

import com.jhgsys.internal.sypq.entity.Notice;
import com.jhgsys.internal.common.entity.QueryRequest;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 待办通知表 Service接口
 *
 * @author ganjun
 * @date 2024-11-30 21:43:28
 */
public interface INoticeService extends IService<Notice> {
    /**
     * 查询（分页）
     * @author ganjun
     * @date 2024-11-30 21:43:28
     * @param request QueryRequest
     * @param notice notice
     * @return IPage<Notice>
     */
    IPage<Notice> findNoticePage(QueryRequest request, Notice notice);

    /**
     * 查询（所有）
     * @author ganjun
     * @date 2024-11-30 21:43:28
     * @param notice notice
     * @return List<Notice>
     */
    List<Notice> findNoticeList(Notice notice);

    /**
    * 根据ID查询
    * @author ganjun
    * @date 2024-11-30 21:43:28
    * @param id
    * @return Notice
    */
    Notice findNoticeById(String id);

    /**
     * 新增
     * @author ganjun
     * @date 2024-11-30 21:43:28
     * @param notice notice
     */
    boolean createNotice(Notice notice);

    /**
     * 修改
     * @author ganjun
     * @date 2024-11-30 21:43:28
     * @param notice notice
     */
    boolean updateNotice(Notice notice);

    /**
     * 逻辑删除
     * @author ganjun
     * @date 2024-11-30 21:43:28
     * @param notice notice
     * @param noticeIds noticeIds
     */
    boolean deleteNotice(Notice notice, String noticeIds);

    /**
    * 物理删除
    * @author ganjun
    * @date 2024-11-30 21:43:28
    * @param noticeIds noticeIds
    */
    boolean physicallyDeleteNotice(String noticeIds);

    /**
     * 首页待办
     * @author ganjun
     * @date 2024-11-30 21:43:28
     * @param notice notice
     * @return List<Notice>
     */
    List<Notice> todoList(Notice notice);

    /**
     * 首页待办已读
     * @author ganjun
     * @date 2024-11-30 21:43:28
     * @param String noticeId
     * @return List<Notice>
     */
    void done(String noticeId);

    void dealDone(Notice n);
}
